import {createRouter, createWebHistory} from 'vue-router';
import Login from '../views/Login.vue';

const routes = [
    {
        path:'/',
        name:'login',
        component:Login
    },
    {
        path: '/home',
        name: 'home',
        component: () => import(/* webpackChunkName: "home" */ '../views/Home.vue'),
        redirect:'/home/Homepage',
            children:[
                {
                    path: 'Homepage',
                    name: 'Homepage',
                    component: () => import(/* webpackChunkName: "Homepage" */ '../views/Homepage.vue')
                },
                {
                    path: 'courseManagement',
                    name: 'courseManagement',
                    component: () => import(/* webpackChunkName: "courseManagement" */ '../views/courseManagement.vue')
                },
                {
                    path: 'editCourses',
                    name: 'editCourses',
                    component: () => import(/* webpackChunkName: "editCourses" */ '../views/editCourses.vue')
                },
                {
                    path: 'addCourses',
                    name: 'addCourses',
                    component: () => import(/* webpackChunkName: "addCourses" */ '../views/addCourses.vue')
                },
                {
                    path: 'deleteCourse',
                    name: 'deleteCourse',
                    component: () => import(/* webpackChunkName: "deleteCourse" */ '../views/deleteCourse.vue')
                },
                {
                    path: 'modifyData',
                    name: 'modifyData',
                    component: () => import(/* webpackChunkName: "modifyData" */ '../views/modifyData.vue')
                },
                {
                    path: 'commonSettings',
                    name: 'commonSettings',
                    component: () => import(/* webpackChunkName: "commonSettings" */ '../views/commonSettings.vue')
                },
                {
                    path: 'swiperManage',
                    name: 'swiperManage',
                    component: () => import(/* webpackChunkName: "swiperManage" */ '../views/swiperManage.vue')
                },
                {
                    path: 'swiperAdd',
                    name: 'swiperAdd',
                    component: () => import(/* webpackChunkName: "swiperAdd" */ '../views/swiperAdd.vue')
                },
                {
                    path: 'swiperEdit',
                    name: 'swiperEdit',
                    component: () => import(/* webpackChunkName: "swiperEdit" */ '../views/swiperEdit.vue')
                },
                {
                    path: 'discountList',
                    name: 'discountList',
                    component: () => import(/* webpackChunkName: "discountList" */ '../views/discountList.vue')
                },
                {
                    path: 'discountAdd',
                    name: 'discountAdd',
                    component: () => import(/* webpackChunkName: "discountAdd" */ '../views/discountAdd.vue')
                },
                {
                    path: 'discountEdit',
                    name: 'discountEdit',
                    component: () => import(/* webpackChunkName: "discountEdit" */ '../views/discountEdit.vue')
                },
                {
                    path: 'aboutUs',
                    name: 'aboutUs',
                    component: () => import(/* webpackChunkName: "aboutUs" */ '../views/aboutUs.vue')
                },
                {
                    path: 'StarTeacher',
                    name: 'StarTeacher',
                    component: () => import(/* webpackChunkName: "StarTeacher" */ '../views/StarTeacher.vue')
                },
                {
                    path: 'TeacherAdd',
                    name: 'TeacherAdd',
                    component: () => import(/* webpackChunkName: "TeacherAdd" */ '../views/TeacherAdd.vue')
                },
                {
                    path: 'TeacherEdit',
                    name: 'TeacherEdit',
                    component: () => import(/* webpackChunkName: "TeacherEdit" */ '../views/TeacherEdit.vue')
                },
                {
                    path: 'TeacherBin',
                    name: 'TeacherBin',
                    component: () => import(/* webpackChunkName: "TeacherBin" */ '../views/TeacherBin.vue')
                },
                {
                    path: 'EmployeeManagement',
                    name: 'EmployeeManagement',
                    component: () => import(/* webpackChunkName: "EmployeeManagement" */ '../views/EmployeeManagement.vue')
                },
                {
                    path: 'EmployeeAdd',
                    name: 'EmployeeAdd',
                    component: () => import(/* webpackChunkName: "EmployeeAdd" */ '../views/EmployeeAdd.vue')
                },
                {
                    path: 'OperationLog',
                    name: 'OperationLog',
                    component: () => import(/* webpackChunkName: "OperationLog" */ '../views/OperationLog.vue')
                },
                {
                    path: 'Order-management',
                    name: 'Order-management',
                    component: () => import(/* webpackChunkName: "Order-management" */ '../views/Order-management.vue')
                },
                {
                    path: 'swiperBin',
                    name: 'swiperBin',
                    component: () => import(/* webpackChunkName: "swiperBin" */ '../views/swiperBin.vue')
                },
                {
                    path: 'ActiveList',
                    name: 'ActiveList',
                    component: () => import(/* webpackChunkName: "ActiveList" */ '../views/ActiveList.vue')
                },
                {
                    path: 'ActiveList-Add',
                    name: 'ActiveList-Add',
                    component: () => import(/* webpackChunkName: "ActiveList-Add" */ '../views/ActiveList-Add.vue')
                },
                {
                    path: 'ActiveList-Recycle',
                    name: 'ActiveList-Recycle',
                    component: () => import(/* webpackChunkName: "ActiveList-Recycle " */ '../views/ActiveList-Recycle.vue')
                },
                {
                    path: 'MoneyManagement',
                    name: 'MoneyManagement',
                    component: () => import(/* webpackChunkName: "MoneyManagement " */ '../views/MoneyManagement.vue')
                },
                {
                    path: 'Education',
                    name: 'Education',
                    component: () => import(/* webpackChunkName: "Education" */ '../views/Education.vue')
                },
                {
                    path: 'Recycle',
                    name: 'Recycle',
                    component: () => import(/* webpackChunkName: "Recycle" */ '../views/Recycle.vue')
                },
                {
                    path: 'AddArticle',
                    name: 'AddArticle',
                    component: () => import(/* webpackChunkName: "AddArticle" */ '../views/AddArticle.vue')
                },
                {
                  path: 'Order-detail',
                  name: 'Order-detail',
                  component: () => import(/* webpackChunkName: "AddArticle" */ '../views/Order-detail.vue')
                }
            ]
    },
]


const router = createRouter({
  history: createWebHistory(),
  routes
})


export default router;